package com.solution.admin.finance.wallet.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.solution.admin.finance.wallet.dao.WalletWithdrawDao;
import com.solution.admin.finance.wallet.entity.WalletWithdrawEntity;
import com.solution.common.dao.impl.BaseDaoImpl;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 客户钱包提现DAO实现
 * @author lufer
 * @date 2018-05-04 16:52:30
 */
@Repository
public class WalletWithdrawDaoImpl extends BaseDaoImpl<WalletWithdrawEntity> implements WalletWithdrawDao {

	/**
	 * 保存客户钱包提现信息
	 * @param walletWithdrawEntity
	 * @return
	 * @author lufer
	 * @date 2018-05-04 16:52:30
	 */
	@Override
	public long saveWalletWithdraw(WalletWithdrawEntity walletWithdrawEntity) {
		return super.insert(walletWithdrawEntity);
	}

	/**
	 * 分页查询客户钱包提现信息
	 * @param pageParam 分页对象
	 * @param walletWithdraw 分页参数
	 * @return PageBean 分页参数及数据
	 * @author lufer
	 * @date 2018-05-04 16:52:30
	 */
	public PageBean listWalletWithdrawPage(PageParam pageParam, Map<String, Object> param) {
		return super.listPage(pageParam, param);
	}

	/**
	 * 更新客户钱包提现
	 * @param walletWithdrawEntity
	 * @return
	 * @author lufer
	 * @date 2018-05-04 16:52:30
	 */
	@Override
	public int updateWalletWithdraw(WalletWithdrawEntity walletWithdrawEntity) {
		return super.update(walletWithdrawEntity);
	}

	/**
	 * 删除客户钱包提现
	 * @param walletWithdrawId
	 * @return
	 * @author lufer
	 * @date 2018-05-04 16:52:30
	 */
	public int deleteWalletWithdrawById( Long id) {
		return super.deleteById(id);
	}
	
	/**
	 * 根据条件查询客户钱包提现
	 * @param param
	 * @return
	 * @author lufer
	 * @date 2018-05-04 16:52:30
	 */
	@Override
	public List<WalletWithdrawEntity> listWalletWithdraw( Map<String, Object> param) {
		return super.listBy(param);
	}
}
